home *** CD-ROM | disk | FTP | other *** search
- // Layer audio - Version 1.2
-
- // This Program Sets the value of the first set of popups
- // to the audio level of the layer in popup 2, scaled to lie within the range [min, max]
-
- // LAYER PROPERTY CHANNEL
- // ------ ---------- --------
- // 1: Layer to copy audio amplitude into property to vary channel of property
- // 2: Layer with audio doesn't matter doesn't matter
-
- max = 1000; // change this to the maximum value
- min = 50; // change this to the minimum value
-
- value(pop_layer(1), pop_property(1)) [pop_channel(1)] =
- min + layer_audio_amplitude(pop_layer(2)) * (max - min);
-